package com.sktlab.bizconfmobile.model;

import org.apache.mina.core.session.IoSession;

import com.sktlab.bizconfmobile.mina.MinaMsg;
import com.sktlab.bizconfmobile.mina.MinaUtil;

public class LSSession extends BaseBusinessSession {
	
	//Bridge number 
	private String bridgeNumber;
	
	public LSSession() {
		
		setBridgeNumber("1");
	}
	
	@Override
	public void create(IoSession session, LSSession ls) {

	}
	
	public void close(IoSession session) {
		
		MinaMsg msg = new MinaMsg();
		
		msg.clearMsgData();		
		msg.setSsnId(getId());
		msg.setMsgId(MinaUtil.MSG_LS_DS);
		msg.setSeq(getSeqNum());
		msg.appendMsgData(getId());
		
		session.write(msg.toString());
	}
	
	public String getBridgeNumber() {
		return bridgeNumber;
	}

	public void setBridgeNumber(String bridgeNumber) {
		this.bridgeNumber = bridgeNumber;
	}
}
